<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<div id="contentmid">
        <div class="midheading">
          <h2>Articoli</h2>
        </div>
        <div class="midtxt">	        
        	<table class="sortable">
				<tr>
					<th>Nome</th>
					<th>Categoria</th>
					<th>Inserzionista</th>
					<th class="sorttable_numeric" >Prezzo</th>
					<th class="sorttable_nosort">&nbsp;</th>
				</tr>
				<s:iterator value="articoli">
				<tr>
					<td><s:property value="nome"/></td>
					<td><s:property value="categoria.nome"/></td>
					<td><s:property value="utente.cognome"/> <s:property value="utente.nome"/></td>
					<td><s:property value="prezzo"/> €</td>
					<td>
					   <s:form action="dettaglio_articolo">
					       <s:hidden name="idArticolo" value="%{idArticolo}"/>
					       <s:submit type="image" src="img/catalogo/get-info-b.png"/>
					   </s:form>
					</td>
				</tr>
				</s:iterator>
			</table>			
        </div>
    </div>
    <div id="contentmid">
        <form>
            <input type="button" value="Indietro" onClick="javascript:history.back()" name="button">
        </form>
    </div>